function printID(id: string | number) {
  if(typeof id === 'string') {
    console.log(id.length)
  } else {
    console.log(id.toFixed(2))
  }
}

printID(1223)
printID('abcd')

export {}